cmake_minimum_required(VERSION 2.8)

# 交叉编译时指定gcc版本
#SET(CMAKE_C_COMPILER "/usr/bin/aarch64-linux-gnu-gcc")
#SET(CMAKE_CXX_COMPILER "/usr/bin/aarch64-linux-gnu-g++")

project(test_DNN)

# Compile options(编译选项)
#add_compile_options(-std=c++11)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
#set(CMAKE_CXX_FLAGS_DEBUG "-fPIC -O0 -g -Wall")
#set(CMAKE_CXX_FLAGS_RELEASE "-fPIC -O2 -Wall")

include_directories(
    ${CMAKE_SOURCE_DIR}/include
)

aux_source_directory(${CMAKE_SOURCE_DIR}/src cpp)
add_executable(test_DNN ${cpp})

find_package(OpenCV REQUIRED)
target_link_libraries(test_DNN 
    ${OpenCV_LIBS}
)